package com.dengbw.systemtransfer.utils;

import java.util.concurrent.ConcurrentHashMap;

/**
 * 简易的缓存，不带任何过期时间等
 * @author Junyu.Shi
 */
public class EasyCacheUtil {
    private EasyCacheUtil(){}

    private static final ConcurrentHashMap<String, Object> cache = new ConcurrentHashMap<>();

    public static void put(String key, Object value) {
        cache.put(key, value);
    }

    public static Object get(String key) {
        return cache.get(key);
    }
}
